package com.ykht.proj.activity.Enum;

public enum PayStatusEnum {
	//0系统管理员1公司2品牌3门店'
	NOT_PAY(0,"待支付"),
	PAY(1,"已完成"),
	BE_OVERDUE(2,"已过期"),
	BE_CANCEL(3,"已取消");

	private Integer value;
	private String desc;

	private PayStatusEnum(Integer value, String desc) {
		this.value = value;
		this.desc = desc;
	}


	/**
	 * 根据val值获取desc
	 * @param val 1、0
	 * @return
	 */
	public static String getDescByVal(Integer val) {
		PayStatusEnum[] values = PayStatusEnum.values();
		for (PayStatusEnum oe : values) {
			if (oe.getValue().equals(val)) {
				return oe.getDesc();
			}
		}
		return null;
	}

	public Integer getValue() {
		return value;
	}

	public void setValue(Integer value) {
		this.value = value;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
}
